package com.zhouyu.beanconfig;

import com.zhouyu.entity.User;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

/**
 * @Author kuangliming
 * @Date 2024/1/27 17:48
 * @Description
 **/
public class SunnyAutoConfiguration {


	@Bean
	@ConditionalOnMissingBean(User.class)
	public User user(){
		return new User("SunnyAutoConfiguration");
	}
}
